import { getAction, deleteAction, putAction, postAction, downFilePost, downFile, uploadAction } from '@/api/manage'

/**
 * 工作台
 */
/*
任务中心
 */

//全部列表
const getAllList = params => getAction(`/workbench/list`,params)
//待办列表
const getNacklogList = params => getAction(`/workbench/mission/listAgencyMission`,params)
//完结列表
const getAssList = params => getAction(`/workbench/mission/listAgencyMission`,params)

/*
审批中心
 */
//我的请求
const getMineList = params => getAction(`/processApproval/getMyApplyProcessInfoList`,params)
//待办审批
const getExbacklogList = params => getAction(`/processApproval/getPendingApprovalList`,params)
//已办审批
const getAlreadyList = params => getAction(`/processApproval/getApprovedList`,params)

//审批
const putTurnRound = params => putAction(`/processApproval/approval`,params)
//撤销
const putCancel = params => putAction(`/processApproval/cancel`,params)
//重新发起
const putChongfa = params => putAction(`/processApproval/restart`,params)

//对应事件详情


export {
  getAllList,
  getNacklogList,
  getAssList,

  getMineList,
  getExbacklogList,
  getAlreadyList,
  putTurnRound,
  putCancel,
  putChongfa
}
